package com.sikaryofficial.config;

import com.sikaryofficial.tools.OpenMeteoService;
import com.sikaryofficial.tools.UserInfoService;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author : wuweihong
 * @desc : TODO  请填写你的功能描述
 * @date : 2025-11-06
 */

@Configuration
public class ToolConfig {

	@Bean
	public ToolCallbackProvider userinfoTools(OpenMeteoService openMeteoService) {
		return MethodToolCallbackProvider.builder().toolObjects(openMeteoService).build();
	}

}
